package com.kx.springmybatis;

import com.kx.springmybatis.event.WSEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

/**
 * 卫生部门响应事件
 * @ClassName WSBMService
 * @Author Sun
 * @Date 2021/5/18 21:50
 */
@Service
public class WSBMService {

    @EventListener
    public void onEvent(WSEvent event) {
        System.err.println("卫生部门收到了一个事件" + event);
    }
}
